package com.qa.IDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qa.pojo.DeptAndProInfo;
import com.qa.pojo.Users;

public interface UsersMapper {
	int deleteByPrimaryKey(Integer usersid);

	int insert(Users record);

	int insertSelective(Users record);

	Users selectByPrimaryKey(Integer usersid);

	int updateByPrimaryKeySelective(Users record);

	int updateByPrimaryKey(Users record);

	Users selectByNameAndPass(@Param("username") String username,
			@Param("password") String password);

	void insertLoginlog(@Param("usersid") Integer usersid);

	List<DeptAndProInfo> getRegInfo();

	int insertUsers(@Param("username") String username,
			@Param("password") String password, @Param("name") String name,
			@Param("juese") int juese, @Param("bumen") int bumen,
			@Param("xiangmu") int xiangmu);
}